<?php

namespace app\modules\common\controllers;

use Yii;
use app\controllers\ApiBaseController;
use app\modules\common\actions as actions;

class SmsController extends ApiBaseController {
    
    public function init() {}
    
    //获取验证码
    public function actionGetcode() {
        $data = Yii::$app->request->get();
        if(empty($data)) {
            $data = Yii::$app->request->post();
        }
        $action = new actions\Sms();
        $ret = $action->GetCode($data);
        return $ret;
    }
}
